package com.home.controller;

import com.home.pojo.Checkitem;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.home.service.checkServices;

import java.util.List;

@RequestMapping("hello")
@RestController
public class HelloController {
    @Autowired
    private checkServices checkServices;
    @RequestMapping("sayHello")
    public List<Checkitem> hello(){
        return checkServices.checkList();
    }
}
